﻿using DotNEToolkit;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinformToolkit.Navigations
{
    /// <summary>
    /// 导航菜单管理器
    /// 管理器通过配置文件去加载菜单项
    /// 通过反射机制动态创建内容页面
    /// </summary>
    public static class MenuManager
    {
        /// <summary>
        /// 注册一个导航菜单
        /// </summary>
        /// <param name="configFile"></param>
        /// <param name="host"></param>
        public static void RegisterMenu(string configFile, IContentHost host)
        {
            MenuContext context = new MenuContext(configFile, host);
        }

        /// <summary>
        /// 注册一个导航菜单
        /// </summary>
        /// <param name="configFile"></param>
        /// <param name="host"></param>
        public static void RegisterMenu(List<WFMenuItem> menuItems, IContentHost host)
        {
            MenuContext context = new MenuContext(menuItems, host);
        }
    }
}


